.class public Lcom/example/inshopbuy/InShopBuyOrders;
.super Landroid/app/Activity;
.source "InShopBuyOrders.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/inshopbuy/InShopBuyOrders$mOnclicliseter;,
        Lcom/example/inshopbuy/InShopBuyOrders$mXListliseter;
    }
.end annotation


# instance fields
.field private adapter:Lcom/example/inshopbuy/InShopOrdersAdapter;

.field private beans:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/example/inshopbuy/InShopOrdersBean;",
            ">;"
        }
    .end annotation
.end field

.field private close:Landroid/widget/ImageView;

.field private context:Landroid/content/Context;

.field private h:Landroid/os/Handler;

.field private is_loading:Z

.field private lv_orders:Lcom/wmr/Lstview/XListView;

.field private m:Lmyapp/MyApp;

.field private mListliseter:Lcom/example/inshopbuy/InShopBuyOrders$mXListliseter;

.field private page:I


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 42
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 50
    new-instance v0, Lcom/example/inshopbuy/InShopBuyOrders$1;

    invoke-direct {v0, p0}, Lcom/example/inshopbuy/InShopBuyOrders$1;-><init>(Lcom/example/inshopbuy/InShopBuyOrders;)V

    iput-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->h:Landroid/os/Handler;

    .line 89
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->is_loading:Z

    .line 90
    const/4 v0, 0x1

    iput v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->page:I

    .line 42
    return-void
.end method

.method static synthetic access$0(Lcom/example/inshopbuy/InShopBuyOrders;)Lcom/example/inshopbuy/InShopBuyOrders$mXListliseter;
    .locals 1

    .prologue
    .line 91
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->mListliseter:Lcom/example/inshopbuy/InShopBuyOrders$mXListliseter;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/inshopbuy/InShopBuyOrders;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 44
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/inshopbuy/InShopBuyOrders;)Lcom/wmr/Lstview/XListView;
    .locals 1

    .prologue
    .line 47
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->lv_orders:Lcom/wmr/Lstview/XListView;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/inshopbuy/InShopBuyOrders;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 45
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/inshopbuy/InShopBuyOrders;)Lcom/example/inshopbuy/InShopOrdersAdapter;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->adapter:Lcom/example/inshopbuy/InShopOrdersAdapter;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/inshopbuy/InShopBuyOrders;)Z
    .locals 1

    .prologue
    .line 89
    iget-boolean v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->is_loading:Z

    return v0
.end method

.method static synthetic access$4(Lcom/example/inshopbuy/InShopBuyOrders;Z)V
    .locals 0

    .prologue
    .line 89
    iput-boolean p1, p0, Lcom/example/inshopbuy/InShopBuyOrders;->is_loading:Z

    return-void
.end method

.method static synthetic access$5(Lcom/example/inshopbuy/InShopBuyOrders;I)V
    .locals 0

    .prologue
    .line 90
    iput p1, p0, Lcom/example/inshopbuy/InShopBuyOrders;->page:I

    return-void
.end method

.method static synthetic access$6(Lcom/example/inshopbuy/InShopBuyOrders;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 50
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->h:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/inshopbuy/InShopBuyOrders;)Ljava/util/List;
    .locals 1

    .prologue
    .line 49
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->beans:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/inshopbuy/InShopBuyOrders;)V
    .locals 0

    .prologue
    .line 110
    invoke-direct {p0}, Lcom/example/inshopbuy/InShopBuyOrders;->getHttpOrdersData()V

    return-void
.end method

.method static synthetic access$9(Lcom/example/inshopbuy/InShopBuyOrders;)I
    .locals 1

    .prologue
    .line 90
    iget v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->page:I

    return v0
.end method

.method private getHttpOrdersData()V
    .locals 2

    .prologue
    .line 111
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/example/inshopbuy/InShopBuyOrders$2;

    invoke-direct {v1, p0}, Lcom/example/inshopbuy/InShopBuyOrders$2;-><init>(Lcom/example/inshopbuy/InShopBuyOrders;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 177
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 179
    return-void
.end method

.method private initData()V
    .locals 5

    .prologue
    .line 274
    iput-object p0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->context:Landroid/content/Context;

    .line 275
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->context:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->m:Lmyapp/MyApp;

    .line 276
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->beans:Ljava/util/List;

    .line 277
    new-instance v0, Lcom/example/inshopbuy/InShopBuyOrders$mXListliseter;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/example/inshopbuy/InShopBuyOrders$mXListliseter;-><init>(Lcom/example/inshopbuy/InShopBuyOrders;Lcom/example/inshopbuy/InShopBuyOrders$mXListliseter;)V

    iput-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->mListliseter:Lcom/example/inshopbuy/InShopBuyOrders$mXListliseter;

    .line 278
    new-instance v0, Lcom/example/inshopbuy/InShopOrdersAdapter;

    iget-object v1, p0, Lcom/example/inshopbuy/InShopBuyOrders;->context:Landroid/content/Context;

    iget-object v2, p0, Lcom/example/inshopbuy/InShopBuyOrders;->beans:Ljava/util/List;

    iget-object v3, p0, Lcom/example/inshopbuy/InShopBuyOrders;->m:Lmyapp/MyApp;

    iget-object v4, p0, Lcom/example/inshopbuy/InShopBuyOrders;->h:Landroid/os/Handler;

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/example/inshopbuy/InShopOrdersAdapter;-><init>(Landroid/content/Context;Ljava/util/List;Lmyapp/MyApp;Landroid/os/Handler;)V

    iput-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->adapter:Lcom/example/inshopbuy/InShopOrdersAdapter;

    .line 279
    return-void
.end method

.method private initView()V
    .locals 2

    .prologue
    .line 206
    const v0, 0x7f0c00a8

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/InShopBuyOrders;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->close:Landroid/widget/ImageView;

    .line 207
    const v0, 0x7f0c00b3

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/InShopBuyOrders;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/wmr/Lstview/XListView;

    iput-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->lv_orders:Lcom/wmr/Lstview/XListView;

    .line 208
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->lv_orders:Lcom/wmr/Lstview/XListView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 209
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->lv_orders:Lcom/wmr/Lstview/XListView;

    iget-object v1, p0, Lcom/example/inshopbuy/InShopBuyOrders;->mListliseter:Lcom/example/inshopbuy/InShopBuyOrders$mXListliseter;

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setXListViewListener(Lcom/wmr/Lstview/XListView$IXListViewListener;)V

    .line 210
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->lv_orders:Lcom/wmr/Lstview/XListView;

    iget-object v1, p0, Lcom/example/inshopbuy/InShopBuyOrders;->adapter:Lcom/example/inshopbuy/InShopOrdersAdapter;

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 211
    return-void
.end method

.method private setoncliclister()V
    .locals 3

    .prologue
    .line 184
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyOrders;->close:Landroid/widget/ImageView;

    new-instance v1, Lcom/example/inshopbuy/InShopBuyOrders$mOnclicliseter;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/example/inshopbuy/InShopBuyOrders$mOnclicliseter;-><init>(Lcom/example/inshopbuy/InShopBuyOrders;Lcom/example/inshopbuy/InShopBuyOrders$mOnclicliseter;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 187
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 96
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 97
    const v1, 0x7f03001c

    invoke-virtual {p0, v1}, Lcom/example/inshopbuy/InShopBuyOrders;->setContentView(I)V

    .line 98
    invoke-direct {p0}, Lcom/example/inshopbuy/InShopBuyOrders;->initData()V

    .line 99
    invoke-direct {p0}, Lcom/example/inshopbuy/InShopBuyOrders;->initView()V

    .line 100
    invoke-direct {p0}, Lcom/example/inshopbuy/InShopBuyOrders;->setoncliclister()V

    .line 101
    invoke-direct {p0}, Lcom/example/inshopbuy/InShopBuyOrders;->getHttpOrdersData()V

    .line 103
    const/high16 v1, 0x7f0c0000

    invoke-virtual {p0, v1}, Lcom/example/inshopbuy/InShopBuyOrders;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 104
    .local v0, "top":Landroid/widget/LinearLayout;
    iget-object v1, p0, Lcom/example/inshopbuy/InShopBuyOrders;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v1

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 105
    const v1, 0x7f070026

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 108
    :cond_0
    return-void
.end method
